package br.com.guiav6.sisguia.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.guiav6.sisguia.dao.UsuarioDao;
import br.com.guiav6.sisguia.entity.Usuario;
import br.com.guiav6.sisguia.service.LoginService;

@Service("loginService")
public class LoginServiceImpl implements LoginService {
	
	@Autowired(required = true)
	UsuarioDao usuarioDao;

	@Override
	public Usuario verificarLogin(String userName, String password) {
		return usuarioDao.findByCredencials(userName, password);
	}

}
